<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@include file="../jsp/taglib_includes.jsp" %>
<%@ taglib prefix="decorator" uri="http://www.opensymphony.com/sitemesh/decorator"%>

<html>
<head>
<style type="text/css">
		.nav ul {list-style:none; margin:0; padding:0}
.nav li {float:left;width:100px; background-color:#FF00FF; text-align:center;
         border-right:1px solid white; position:relative; height:30px;
         line-height:30px;}
.nav li ul li {float:none; width:150px;text-align:left; padding-left:5px;
               border-top:1px solid white;}
.nav a {text-decoration:none; color:white;}
.nav li ul {position:absolute; top:30px; left:0;  visibility:hidden;}
.nav li:hover {background-color:blue;}
.nav li:hover ul {visibility:visible;}
.content {clear:both;}

.nav li ul ul li{float:none; width:150px;text-align:left; padding-left:5px;
               border-top:1px solid white; border-left:1px solid white; visibility:hidden;}
.nav li ul ul {left:100%; top: -.1em;}
.nav li ul li ul li:hover {background-color:blue;}
.nav li li:hover ul li {visibility:visible;}
</style>
<title><decorator:title>title</decorator:title></title>
<%@include file="/WEB-INF/jsp/header.jsp" %>
</head>
<decorator:head/>
<body>
<table cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td>
<table cellpadding="0"cellspacing="0" width="100%">
<tr valign="top">
<td>
<h3 style="color: black;font-family:serif;">Welcome :${username}</h3>
<a href="<c:url value="/j_spring_security_logout" />">Logout</a>
</td>
<td width="50%" align="right" valign="top">
<div class="nav" align="right">
<c:if test="${not empty menuMap }">
	
  		<ul>
  		<c:forEach var="menuMap" items="${menuMap}">
  		<c:forEach var="mainList" items="${menuMap.value}">
  		<li>
  		<c:url value="${mainList.key}"></c:url>
  			<c:if test="${not empty mainList.value }">
  			<ul>
  				
  				<c:forEach var="subList" items="${mainList.value}"> 
  				<li>				
  					<c:url value="${subList.key}"></c:url>
  					  <c:if test="${not empty subList.value }">
  					  <ul>
  					  <c:forEach var="subChildList" items="${subList.value}">
  					  	<li>
  					  		<c:url value="${subChildList.key}"></c:url>
  					  	</li>
  					  </c:forEach>
  					  </ul>
  					  </c:if>
  					</li>
  				</c:forEach>
  				
  			</ul>
  			
  			</c:if>
  		</li>						
  			</c:forEach>		
  		</c:forEach>
  		</ul>
  
  </c:if>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellpadding="0"cellspacing="0" width="100%">
<tr align="center">
<td valign="middle" align="center">
<br>
<br>
<br>
<decorator:body/>
</td>
</tr>
</table> 
</td>
</tr> 
</table>
<%@include file="/WEB-INF/jsp/footer.jsp" %>
</body>
</html>